﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace DAL.Project
{
    interface IProjectDao
    {
        void InsertProject(Models.Projects project);

        bool UpdateProject(Models.Projects project);

        bool DeleteProjectById(int id);

        Models.Projects GetProjectById(int id);

        List<Models.Projects> GetList(ref int totalCount, int pageIndex = 1, int pageSize = 12, string orderBy = "CreatedAt Desc");

        List<Models.Projects> GetListByTag(ref int totalCount, string[] tag, int pageIndex = 1, int pageSize = 12, string orderBy = "CreatedAt Desc");

        List<Models.Projects> GetListByUserId(ref int totalCount, int userId, int pageIndex = 1, int pageSize = 12, string orderBy = "CreatedAt Desc");

    }
}
